package com.prd.controller;


import com.prd.service.OaEmployeeService;
import com.prd.util.JsonData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工数据表 前端控制器
 * </p>
 *
 * @author lizhaoyi
 * @since 2023-12-12
 */
@RestController
@RequestMapping("/api/oaEmployee")
@Api(tags = "花名册管理")
public class OaEmployeeController {

    @Autowired
    private OaEmployeeService oaEmployeeService;



    @ApiOperation("查询花名册")
    @GetMapping("selectByCondition")
    public JsonData selectByCondition(@RequestParam(value = "dept",required = false) @ApiParam(value = "部门名称") String dept,
                                      @RequestParam(value = "conditionStr",required = false) @ApiParam(value = "匹配条件：员工名字/电话") String conditionStr){

        return oaEmployeeService.selectByCondition(dept,conditionStr);
    }



}

